import api from '@/libs/request'

export const doGetFinance = (data: any) => {
    return api.post('gruul-mall-overview/overview/statement', data)
}
/**
 * 查询店铺余额
 */
export const doGetShopBalance = () => {
    return api.get('gruul-mall-overview/overview/shop/balance')
}
/**
 * 获取店铺提现申请列表
 */

export const doGetWithdrawList = (params: any) => {
    return api.get('gruul-mall-overview/overview/withdraw/shop', params)
}
/**
 * 提现申请
 */
export const doPostWithdraw = (amount: number) => {
    return api.post('gruul-mall-overview/overview/shop/balance/withdraw', {
        amount,
    })
}
